/* 
 * File:   F07.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F07_H
#define	JRV_F07_H

#include "ecb/base/Problem.h"

#include "ecb/function/Griewank.h"

namespace ecb {
    namespace jrv11 {

        class F07 : public Problem {
        private:
            Problem* griewank;
        public:

            F07(int dimensions)
            : Problem("F07", "Griewank", dimensions,
            -600, 600, true) {
                griewank = new Griewank;
            }

            ~F07() {
                delete griewank;
            }

            scalar f(const std::vector<scalar>& x) {
                return griewank->f(x);
            }
        };
    }
}

#endif	/* JRV_F07_H */

